package com.atguigu.auth.config;

import com.aliyun.teaopenapi.models.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SMSconfig {

    @Bean
    com.aliyun.dysmsapi20170525.Client client() throws Exception {
        Config config = new Config()
                // 您的AccessKey ID
                .setAccessKeyId("LTAI4G9CZkyXxJqqn91vrRnf")
                // 您的AccessKey Secret
                .setAccessKeySecret("KDqYBb223pP7DplXUQMhgzV4rGW6gU");
        // 访问的域名
        config.endpoint = "dysmsapi.aliyuncs.com";
        return new com.aliyun.dysmsapi20170525.Client(config);
    }
}
